package cn.ym.org.mapper;

import cn.ym.org.domain.Shop;
import cn.ym.basic.mapper.BaseMapper;
import cn.ym.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口：店铺
 * </p>
 *
 * @author ym
 * @since 2022-11-01
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByNameAndAddress(Shop shop);

    void updateState(@Param("id") Long shopId, @Param("state") int i);
    //查询每一种状态的数量
    List<ShopDto> echarts();


}
